package com.bw.ivideoproject.video

import com.bw.ivideoproject.entity.BaseResp
import com.bw.ivideoproject.entity.SimpleVideoEntity
import com.bw.ivideoproject.entity.TypeEntity
import com.bw.ivideoproject.entity.VideoEntity
import com.bw.lib_internet.BaseApi
import retrofit2.http.GET
import retrofit2.http.Query

interface VideoApi : BaseApi {

    @GET("/videotype/getMutilType")
    suspend fun getType():BaseResp<List<TypeEntity>>

    @GET("/videotype/getMutilTypeByPid")
    suspend fun getTypeById(@Query("pid") pid:Int):BaseResp<List<TypeEntity>>

    @GET("/videomulti/getMutilVideoByTypeId")
    suspend fun getVideoByType(@Query("typeid") typeId:Int,@Query("page") page:Int,@Query("pagesize") pageSize:Int):BaseResp<List<VideoEntity>>

}